package top.aigoo.project01.service;

import org.springframework.web.multipart.commons.CommonsMultipartFile;
import top.aigoo.project01.entity.WechatAuth;
import top.aigoo.project01.entity.dto.WechatAuthExecution;

/**
 * @Description: 请填写该类完成的功能
 * @Author: Mr.OYSHUO.欧阳大叔  mail:1642302522@qq.com
 * @Version 1.0.0
 * @Date: 2021/9/10 22:10
 */
public interface WechatAuthService {
    /**
     * 通过openId查找平台对应的微信账号
     *
     * @param openId
     * @return
     */
    WechatAuth getWechatAuthByOpenId(String openId);

    /**
     * 注册本平台的微信账户
     *
     * @param wechatAuth
     * @param profileImg
     * @return
     * @throws RuntimeException
     */
    WechatAuthExecution register(WechatAuth wechatAuth, CommonsMultipartFile profileImg) throws RuntimeException;

    WechatAuthExecution register2(WechatAuth wechatAuth) throws RuntimeException;
}
